import socket

sk = socket.socket(family=socket.AF_INET,type=socket.SOCK_STREAM)
address = ('127.0.0.1',8100)
sk.bind(address)
sk.listen(3)
#client socket 

conn,remote_addr = sk.accept()
welcome_msg = 'welcome to here'
conn.send(bytes(welcome_msg,'utf8')) # TypeError: a bytes-like object is required, not 'str'
while True:
    data = conn.recv(1024)
    
    print(data)
    inp = input('>>>')
    conn.send(bytes(inp,'utf8'))
    
    
conn.close()
sk.close()